<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form method="post">
	<div class="tt">车主管理</div>
	<table cellpadding="2" cellspacing="1" class="tb">
		<tr>
			<th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
			<th>用户名</th>
			<th>加入时间</th>
			<th>地区</th>
			<th>是否填写</th>
			<th>操作</th>
		</tr>
		<?php foreach ($lists as $k => $v) { ?>
		<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
			<td><input type="checkbox" name="username[]" value="<?php echo $v->username;?>"/></td>
			<td><a href="javascript:_user('<?php echo $v->username;?>');"><?php echo $v->username;?></a></td>
			<td><?php echo date('m-d H:i', $v->edittime);?></td>
			<td><?php echo Area::pos($v->areaid);?></td>
			<td><?php if(!$v->amid){ echo '<span style="color: #f00">未填写</span>';}else{echo '已填写';};?></td>
			<td>
				<?php $url = "?moduleid={$moduleid}&file={$file}&action=view&username={$v->username}";?>
				<a href="javascript:_popup('<?php echo $url;?>', 400, 300, '车主信息')">查看</a>
				<?php $url = "?moduleid={$moduleid}&file={$file}&action=delete&username={$v->username}";?>
				<a href="<?php echo $url;?>" onclick="return _delete()">删除</a>
			</td>
		</tr>
		<?php }?>
	</table>
</form>
<?php include tpl('pages'); ?>
<script type="text/javascript">
	Menuon(0);
</script>
<?php include tpl('footer'); ?>